﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using CBM.Contract.DataAccess;
using Microsoft.Practices.Unity;
using CBM.Contract.Enitities;
using System.Collections.Generic;

namespace CBM.DataAccess.DPC
{
    public class ComicBookDPC : ISelectStripBoek
    {
        [InjectionConstructor]
        public ComicBookDPC(IUnityContainer container)
        {
            this.Container = container;
        }

        IUnityContainer Container { get; set; }

        System.Collections.Generic.IEnumerable<Contract.Enitities.IComicBook> ISelectStripBoek.SelectData(Contract.Enitities.IComicBook boek)
        {

            List<IComicBook> list = new List<IComicBook>();

            if (Container != null)
            {
                IComicBook boek1 = Container.Resolve<IComicBook>();
               boek1.Title = "Boek1";
               list.Add(boek1);
               IComicBook boek2 = Container.Resolve<IComicBook>();
               boek2.Title = "Boek2";
               list.Add(boek2);

               IComicBook boek3 = Container.Resolve<IComicBook>();
               boek3.Title = "Boek3";
               list.Add(boek3);
            }

            return list;
        }
    }
}
